package summer_vacation.xuqianlan;

import java.util.Scanner;

/**
 * Created by lenovo on 2015/9/3.
 */
public class Test_35 {

    public static void main(String[] args) {
       for(int n=1000;n<10000;n++){
           int a=n/1000;
           int b=(n-a*1000)/100;
           int c=(n-a*1000-b*100)/10;
           int d=n-a*1000-b*100-c*10;
           if(n*9==d*1000+c*100+b*10+a){
               System.out.println(+n);
           }
       }

    }
}
